Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port Profile Followers/Follows to RQ #1893

Merged
merged 8 commits into from
Nov 15, 2023
Merged

Port Profile Followers/Follows to RQ #1893

merged 8 commits into from
Nov 15, 2023

Conversation

gaearon
Copy link
Collaborator

@gaearon gaearon commented Nov 14, 2023

  • Port ProfileFollowers
  • Port ProfileFollows
  • Port FollowButton
    • Fix the button to update on completion
    • Check if shadow cache is working
    • Check if we broke the usage in Onboarding
  • Delete or replace now-broken useFollowProfile
    • Used from SuggestedFollow

Comment on lines +40 to +42
if (!profile.viewer?.following) {
return
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a split second where profile.viewer.following can be set to pending, and this fn should return early in that case too. Rn we're reusing this prop that's typically either undefined | URI, so that we know a follow request is in-flight.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, this is based on the pattern in ProfileHeader so I'd rather align with that. If it's wrong we should fix it in both places — and probably many more places because ProfileHeader uses a similar pattern for a bunch of other handlers. So I'd keep it out of scope of this PR.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added to tracker

Copy link
Member

@estrattonbailey estrattonbailey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good to me!

@gaearon gaearon force-pushed the profile-followers-rq branch from 03ec8fb to fb8046c Compare November 14, 2023 20:37
@gaearon gaearon force-pushed the profile-followers-rq branch from fb8046c to c487e72 Compare November 14, 2023 23:27
@gaearon gaearon marked this pull request as ready for review November 15, 2023 01:31
Copy link
Collaborator

@pfrazee pfrazee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!

@pfrazee pfrazee merged commit e699df2 into main Nov 15, 2023
3 of 4 checks passed
@pfrazee pfrazee deleted the profile-followers-rq branch November 15, 2023 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants